/*
 * Copyright (c) $today.year-Now http://www.zxpnet.com All rights reserved.
 */

package com.zxp.springboot.hello.enums;

import lombok.Getter;

/**
 * 1正常 2禁用 3冻结）
 * @author: shollin
 * @date: 2021/6/28/028 22:28
 */
@Getter
public enum UserState implements IBaseEnum<Integer> {

    NORMAL(1,"正常"),
    FORBBEN(2,"禁用"),
    CLOSED(3,"禁用");


    private final Integer code;
    private final String description;

    UserState(Integer code, String description) {
        this.code = code;
        this.description = description;
    }

    // 保存在数据库里面的值
    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
